package org.wlw.test02;

public class TestMonkey {
    public static void main(String[] args) {
        Monkey m = new GoldMonkey();
        GoldMonkey gm = (GoldMonkey) m;
        gm.name = "悟空";
        m.run();
        m.sleep();
        gm.run();
        ProtectAble pm = (ProtectAble) m;
        pm.protect();
    }
}
